package ynu.lcy.elememicroserviceuserauthservice9091.dao;




import org.springframework.data.jpa.repository.JpaRepository;
import ynu.lcy.elememicroserviceuserauthservice9091.entity.User;

import java.util.List;

public interface IUserDao extends JpaRepository<User,Long> {
    User findUserByuserPhone(String userPhone);
    User findUserByuserPhoneAndPassword(String userPhone,String password);
    List<User> findAllByUserRole(String role);
}
